const homeContainer = () => import( '@/containers/home/home.vue') //首页
const homeOptionalContainer = () => import( '@/containers/home/optional.vue') //物料搜索页
const homeCouponContainer = () => import( '@/containers/home/coupon.vue') //领券页
const homeGroomContainer = () => import( '@/containers/home/groom.vue') //导购页
const applyContainer = () => import( '@/containers/apply/apply.vue') //申请页
const rulesContainer = () => import( '@/containers/agencyRules/agencyRules.vue')  //代理规则页
const fieldContainer = () => import( '@/containers/admin/field.vue')  //我的
const loginContainer = () => import( '@/containers/admin/login.vue')  //登陆
const registerContainer = () => import( '@/containers/admin/register.vue')  //注册
const forgetPwdContainer = () => import( '@/containers/admin/forgetPwd.vue')  //忘记密码
const shopContainer = () => import( '@/containers/home/jdShop.vue')  //京东小铺

// const homeSearchContainer = () => import( '@/containers/home/search.vue') //搜索页
const catsContainer = () => import( '@/containers/home/cats.vue') //分类页面
const optionalCatsContainer = () => import( '@/containers/home/optionalCats.vue') //分类详情
const notFoundContainer = r => require.ensure([], () => r(require('@/containers/NotFoundContainer.vue')), '404')


export default [{
		path: '/',
		redirect: '/home'
	},
	{
		path: '/home',
		name: `home`,
		component: homeContainer, //首页
		meta: {
			requiresAuth: false,
			keepAlive: false
		}
	},
	// {
	// 	path: '/search',
	// 	name: `search`,
	// 	component: homeSearchContainer, //超级搜索
	// },
	{
		path: '/optional',
		name: `optional`,
		component: homeOptionalContainer, //超级搜索
	},
	{
		path: '/coupon',
		name: `coupon`,
		component: homeCouponContainer, //物料搜索页（转链）
	},
	{
		path: '/groom',
		name: `groom`,
		component: homeGroomContainer, //好券推荐
	},
	{
		path: '/apply',
		name: `apply`,
		component: applyContainer, //申请页
	},
	{
		path: '/rules',
		name: `rules`,
		component: rulesContainer, //代理规则页
	},
	{
		path: '/field',
		name: `field`,
		component: fieldContainer, //我的领域
	},
	{
		path: '/login',
		name: `login`,
		component: loginContainer, //登陆页面
	},
	{
		path: '/register',
		name: `register`,
		component: registerContainer, //注册
	},
	{
		path: '/forgetPwd',
		name: `forgetPwd`,
		component: forgetPwdContainer, //忘记密码
	},
	{
		path: '/shop',
		name: `shop`,
		component: shopContainer, //店铺推荐
	},
	{
		path: '/cats',
		name: `cats`,
		component: catsContainer, //分类页面
	},
	{
		path: '/optionalCats',
		name: `optionalCats`,
		component: optionalCatsContainer, //分类详情
	},
	{
		path: '/404',
		component: notFoundContainer //404
	},
	{
		path: '*',
		component: notFoundContainer //404
	}
	
]